package com.dc.excel.listener;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;
import com.dc.excel.model.WorkflowMachinePipeModel;

import java.util.ArrayList;
import java.util.List;

public class WorkflowMachinePipeExcelListener  extends AnalysisEventListener<WorkflowMachinePipeModel> {
    private List<WorkflowMachinePipeModel> results = new ArrayList<>();
    @Override
    public void invoke(WorkflowMachinePipeModel data, AnalysisContext context) {
        results.add(data);
    }
    @Override
    public void doAfterAllAnalysed(AnalysisContext context) {

    }
    public List<WorkflowMachinePipeModel> getResults(){return results;}
}
